package top.fzqblog.app;

import android.app.Application;


/**
 * Created by jingbin on 2016/11/22.
 */

public class FirstApplication extends Application {

    private static FirstApplication firstApplication;

    public static FirstApplication getInstance() {
        if (firstApplication == null) {
            synchronized (FirstApplication.class) {
                if (firstApplication == null) {
                    firstApplication = new FirstApplication();
                }
            }
        }
        return firstApplication;
    }


    @Override
    public void onCreate() {
        super.onCreate();
        firstApplication = this;
    }
}
